﻿// See https://aka.ms/new-console-template for more information
using DatabaseProxy.DatabaseProxy;
using DatabaseProxyTest;

Console.WriteLine("Hello, World!");

DatabaseProxyCore.ConnectionString = "Data Source=192.168.110.53;Initial Catalog=PraticeDb;User Id=sa;Password=Hg123456;TrustServerCertificate=true";

DatabaseProxyCore proxy = new();
// var list = proxy.GetEntities<CommentInfo>(l => l.ContentData == "测试内容2", typeof(CommentInfo).GetProperty("Title")!, "asc", 1, 1);
var result = proxy.DeleteEntity<CommentInfo>(l => l.Id > 6);
Console.WriteLine(result);